package com.itheima.service;

import com.itheima.dto.MediaNewsDto;
import com.itheima.dto.PubishNewsDto;
import com.itheima.po.MediaNews;
import com.itheima.vo.MediaNewsVo;
import com.itheima.vo.PagingQueryVo;
import net.sourceforge.tess4j.TesseractException;

import java.io.IOException;
import java.util.List;

/**
 * @author :wujunjie
 * createTime :2023-01-02 23:04
 * description :
 */
public interface NewsService {
    PagingQueryVo<MediaNewsVo> selectNews(MediaNewsDto dto);

    Boolean pubishNews(PubishNewsDto dto) throws TesseractException, IOException;

    Long newsDDownOrUp();

    List<MediaNews> selectNewsByStatus(int status);

    MediaNews pubishArticle(MediaNews mediaNews) ;

    Boolean checkMediaNews(MediaNews mediaNews) throws TesseractException, IOException;
    Boolean updateById(MediaNews mediaNews);
}
